<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用戶列表</title>
</head>
<body>
	<table border="1" align="center">
		<tr>
			<td>用户ID</td>
			<td>用户名</td>
			<td>性别</td>
			<td>密码</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${users}" var="user">
			<tr>
				<td>${user.userId}</td>
				<td>${user.userName}</td>
				<td>${user.userSex}</td>
				<td>${user.password}</td>
				<td><a href="user/userInfo?userId=${user.userId}">查询用户信息</a></td>
			</tr>
			
		</c:forEach>
	</table>
</body>
</html>